-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide Info,State,Instance #2856
Hide Info,State,Instance #2856
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -86,11 +86,19 @@ mod placeholder; | |||
pub use placeholder::NoPin; | |||
|
|||
#[cfg(soc_etm)] | |||
pub mod etm; | |||
crate::unstable_module! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did these really need separate macro calls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the way the macro currently works - yes
I don't see a way to make the macro work here without turning it into a proc-macro (and I'm not sure it's worth it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean, what's wrong with this?
crate::unstable_module! {
#[cfg(soc_etm)]
pub mod etm;
#[cfg(lp_io)]
pub mod lp_io;
#[cfg(all(rtc_io, not(esp32)))]
pub mod rtc_io;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mhhh - I remember it was causing some problem with the lp_gpio macro before but now it's working this way - so we can change to one macro invocation again
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Description
Closes #2766 but not fully #2697 (besides hiding
AlternateFunction
- posted an open question there)Additionally it marks
gpio/etm
,gpio/lp_io
,gpio/rtc_io
,gpio/etm
,RtcPin
,RtcFunction
,WakeEvent
,RtcPinWithResistors
,AnalogPin
,TouchPin
as unstable.TouchPin
is feature gated by#[cfg(touch)]
No CHANGELOG.md entry (can add it if we want it - seems unnecessary since one of the main things to mention for the next release is the introduction of the unstable feature)
Testing
n.a. / builds passing
inspect the generated docs